package com.qfjy.homework.lixuefeng;
//矩形
public class Rectangle {
    //长
    public double length;
    //宽
    public double width;
    //高
    public double height;

    public Rectangle() {
        this.length = 1;
        this.width = 1;
        this.height = 1;
    }

    public Rectangle(double length, double width, double height) {
        this.length = length;
        this.width = width;
        this.height = height;
    }

    @Override
    public String toString() {
        return "Rectangle{" +
                "length=" + length +
                ", width=" + width +
                ", height=" + height +
                '}';
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }
}
